package cn.cucc.bean;

import java.util.Collections;
import java.util.List;

import io.swagger.annotations.ApiModelProperty;

/**
 * 分页返回类
 * 
 */
public class PageResp<T> {
	@ApiModelProperty("总记录数")
	Long count = 0l;
	@ApiModelProperty("起始页,从1开始")
	Integer current = 1;
	@ApiModelProperty("每页记录数,默认为10")
	Integer limit = 10;
	@ApiModelProperty("内容列表")
	List<T> records = Collections.emptyList();

	public List<T> getRecords() {
		return records;
	}

	public void setRecords(List records) {
		this.records = records;
	}

	public Long getCount() {
		return count;
	}

	public void setCount(Long count) {
		this.count = count;
	}

	public Integer getCurrent() {
		return current;
	}

	public void setCurrent(Integer current) {
		this.current = current;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

}
